#pragma once

#include <string>
#include <iostream>
#include <memory>
#include <fstream>

#include "Translator.h"

using namespace std;

namespace CodeMood {
	// A class derived form Translator to translate QQ pinyin
	// dictionary to Bing pinyin dictionary.
	// The input file format can only be ANSI, results from other
	// file format are undefined.
	class QQ2Bing : public Translator
	{
	public:
		QQ2Bing(){}
		QQ2Bing(string infilename);
		QQ2Bing(string infilename, string outfilename);
		~QQ2Bing();
		void translate();
		shared_ptr<ifstream> get_spif() const
		{
			return spif_;
		}
	};
}

